$(document).ready(function(){    
    $("#citizen_has_job_yes").click(function() {
        $("#job_section").slideDown();
    });
    
    $("#citizen_has_job_no").click(function() {
        $("#job_section").slideUp();
    });
});




function addCreditOnCitizen()
{
    if($("#citizen_form_container").hasClass('open')){
        $("#citizen_form_container").removeClass('col-md-10');
        $("#citizen_form_right_container").addClass('col-md-8');
        $("#citizen_form_container").addClass('col-md-4');
        $("#citizen_form_right_container").removeClass('col-md-2');
        
        $("#citizen_form_container").removeClass('open');
        $("#citizen_form_container").addClass('closed');
        
    }else if($("#citizen_form_container").hasClass('closed'))
    {
        $("#citizen_form_container").removeClass('col-md-8');
        $("#citizen_form_right_container").addClass('col-md-2');
        $("#citizen_form_container").addClass('col-md-10');
        $("#citizen_form_right_container").removeClass('col-md-8');
        
        $("#citizen_form_container").removeClass('closed');
        $("#citizen_form_container").addClass('open');
    }
    
    
}